﻿using System;
using System.Windows;
using System.Windows.Data;
using System.Globalization;

namespace Omnia.Converters
{
    public class NumberGreaterThanToBooleanConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is int)
            {
                return (int)value > int.Parse(parameter.ToString());
            }
            return false;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return false;
        }
    }
}
